package com.learn.designPatterns.behavioral.memento;

/**
 * @classname:
 * @Description: Originator Interface
 * @author: yfpu
 * @Date: 2018-10-20 17:47
 */
public interface Calculator {
    //create memento
    PreviousCalculatorToCareTaker backupLastCalculation();

    //set memento
    void restorePreviousCalculation(PreviousCalculatorToCareTaker memento);

    int getCalculationResult();
    void setFirstNum(int firstNum);
    void setSecondNum(int secondNum);
}
